<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
if ( ! function_exists('online_yahoo')){
	function online_yahoo($user =null,&$link){
		$f=file("http://opi.yahoo.com/online?u=$user&m=t");
		$link = "ymsgr:sendim?".$user."&amp;m=Hello";
		if (strpos($f[0],"NOT ONLINE")!=0){
			return false;
		}else{
			return true;
		}
	}
}

if ( ! function_exists('online_skype')){
	function online_skype($user =null,&$link){
		$f = file("http://mystatus.skype.com/$user.num");
		$link = "skype:".$user."?chat";
		if ($f[0]!="2"){
				return false;
		}else{
			return true;
		}
	}
}
?>